﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LMM_Editor.Classes.CustomControls
{
    public class CustomLabelProperties : PropertyWrapper
    {
        public CustomLabel parent;
   
        [Browsable(true)]
        public int Left
        {
            get
            {
                return parent.Left;
            }

            set
            {
                parent.Left = value;
                parent.Invalidate();
            }
        }

        [Browsable(true)]
        public int Top
        {
            get
            {
                return parent.Top;
            }

            set
            {
                parent.Top = value;
                parent.Invalidate();
            }
        }

        [Browsable(true)]
        public int Width
        {
            get
            {
                return parent.Width;
            }
            set
            {
                parent.Width = value;
                parent.Invalidate();
            }
        }

        [Browsable(true)]
        public int Height
        {
            get
            {
                return parent.Height;
            }
            set
            {
                parent.Height = value;
                parent.Invalidate();
            }
        }

        [Browsable(true)]
        public Image Graphic
        {
            get
            {
                return parent.Image;
            }

            set
            {
                parent.Image = value;
                parent.Size = new Size(value.Width, value.Height);
                parent.Invalidate();
            }
        }

        [Browsable(true)]
        public String Text
        {
            get
            {
                return parent.Text;
            }
            set
            {
                parent.Text = value;
            }
        }
    }
}
